package com.ims.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: wyk
 */
@TableName(value = "log_pwd_err")
public class LogPwdErr implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "username")
    private String userName;

    @TableField(value = "err_num")
    private int errNum;

    @TableField(value = "last_date")
    private LocalDateTime lastDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getErrNum() {
        return errNum;
    }

    public void setErrNum(int errNum) {
        this.errNum = errNum;
    }

    public LocalDateTime getLastDate() {
        return lastDate;
    }

    public void setLastDate(LocalDateTime lastDate) {
        this.lastDate = lastDate;
    }

    @Override
    public String toString() {
        return "LogPwdErr{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", errNum=" + errNum +
                ", lastDate=" + lastDate +
                '}';
    }
}
